<script setup name="App">
    import { ref } from 'vue'
    let obj= ref({
          name: 'geyao',
          age: 18,
          sex: '男'
        })
    
    </script>
    
    <template>
         <div>{{ obj.name }}</div>
         <div>{{ obj.age }}</div>
         <div>{{ obj.sex }}</div>
         <!-- <button @click="name='geyaosinice'">修改姓名</button>
         <button @click="age=19">修改年龄</button>
         <button @click="sex='女'">修改性别</button> -->
         <button @click="obj.name='geyaosinice'">修改姓名</button>
         <button @click="obj.age=19">修改年龄</button>
         <button @click="obj.sex='女'">修改性别</button>
    </template>
    
    <style scoped>
    
    </style>
    
    
    
    
    